package com.atguigu.boot.controller;

import com.atguigu.boot.bean.Person;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wenchao.long
 * @date : Created in 2021/02/03 11:11 周三
 * @description :
 */
@RestController
@AllArgsConstructor
public class HelloController {

    private final Person person;

    @RequestMapping("/person")
    public Person person() {
        return person;
    }
}
